package ru.paswd.demo.android.view.components

import ru.paswd.demo.android.view.models.DecisionItem

class EmbeddedHistoryStorage : HistoryStorage {

    private val saved: MutableList<DecisionItem> = mutableListOf()

    override fun save(item: DecisionItem) {
        saved.add(item)
    }

    override fun get(): List<DecisionItem> = saved
}